package com.woniu.client;


import com.woniu.model.Result;
import com.woniu.client.dto.JunkTypeDto;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;


@FeignClient(name = "junktype-server",path = "/junkType")//这里填目标服务名
public interface JunkTypeClient {

    @GetMapping("/getById/{id}")
    @ApiOperation("根据id查找")
    public Result<JunkTypeDto> getById(@PathVariable("id") Integer id);


}
